//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Zingara','The Ritz Ybor','Tampa, FL','Friday','5/10/2024','10:00 PM','6252557','Zingara-5-10-2024'],['Hamdi','The Ritz Ybor','Tampa, FL','Friday','5/24/2024','10:00 PM','6250481','Hamdi-5-24-2024'],['Loud Luxury','The Ritz Ybor','Tampa, FL','Saturday','5/25/2024','10:00 PM','6309665','Loud-Luxury-5-25-2024'],['Space Laces','The Ritz Ybor','Tampa, FL','Friday','5/31/2024','10:00 PM','6266645','Space-Laces-5-31-2024'],['Emo Nite','The Ritz Ybor','Tampa, FL','Saturday','6/1/2024','9:00 PM','6305350','Emo-Nite-6-1-2024'],['Motion City Soundtrack','The Ritz Ybor','Tampa, FL','Sunday','6/2/2024','8:00 PM','6307815','Motion-City-Soundtrack-6-2-2024'],['The Eric Andre Show Live','The Ritz Ybor','Tampa, FL','Friday','6/7/2024','7:30 PM','6345916','The-Eric-Andre-Show-Live-6-7-2024'],['Ocean Alley','The Ritz Ybor','Tampa, FL','Saturday','6/15/2024','6:30 PM','6130337','Ocean-Alley-6-15-2024'],['The Menzingers','The Ritz Ybor','Tampa, FL','Sunday','6/16/2024','7:30 PM','6293404','The-Menzingers-6-16-2024'],['GWAR','The Ritz Ybor','Tampa, FL','Monday','6/17/2024','6:00 PM','6387222','GWAR-6-17-2024'],['The Garden - The Band','The Ritz Ybor','Tampa, FL','Wednesday','6/19/2024','8:00 PM','6296048','The-Garden---The-Band-6-19-2024'],['Little Big','The Ritz Ybor','Tampa, FL','Sunday','6/23/2024','7:30 PM','6328736','Little-Big-6-23-2024'],['BossMan Dlow','The Ritz Ybor','Tampa, FL','Sunday','7/14/2024','7:00 PM','6345139','BossMan-Dlow-7-14-2024'],['Snails','The Ritz Ybor','Tampa, FL','Friday','7/19/2024','10:00 PM','6377498','Snails-7-19-2024'],['The Aquabats','The Ritz Ybor','Tampa, FL','Saturday','7/20/2024','5:30 PM','6374378','The-Aquabats-7-20-2024'],['Apashe','The Ritz Ybor','Tampa, FL','Friday','7/26/2024','10:00 PM','6400412','Apashe-7-26-2024'],['The Front Bottoms','The Ritz Ybor','Tampa, FL','Saturday','5/3/2070','TBD','4437854','The-Front-Bottoms-5-3-2070'],['Surfaces','The Ritz Ybor','Tampa, FL','Wednesday','5/14/2070','TBD','4362766','Surfaces-5-14-2070'],['Vengeance 2020: Xavier Wulf & Attila','The Ritz Ybor','Tampa, FL','Saturday','9/13/2070','3:30 PM','4385073','Vengeance-2020--Xavier-Wulf---Attila-9-13-2070']],'The Ritz Ybor City','http://www.ticketnetwork.com/ticket/The-Ritz-Ybor-City-events.aspx');